import React, { Component } from 'react'
import { withRouter } from "react-router-dom"
// 引入样式
import styles from "./index.module.scss"
class Login extends Component {

    register=(params) => {
        this.props.history.push("/register")
    }
    
    render() {
        return (
            <div className={styles.login}>
                <input type="text" placeholder="账号"/>
                <input type="password" placeholder="密码"/>
       
                <button className={styles.btn1}>登录</button>
                <button className={styles.btn2} onClick={this.register.bind(this,"register")}>注册</button>
            </div>
        )
    }
}
export default withRouter(Login)
